package com.zzxy.mvc.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

@Controller
@RequestMapping("/test1")
public class TestController {
    @RequestMapping("/list")
    public String test11(@RequestParam(defaultValue = "10", name = "uid" , required = true) int uid){
        System.out.println(uid);
        return "redirect:/user/list.do";
    }

}
